package com.alinesno.infra.smart.assistant.scene.scene.documentReader.service;

import com.alinesno.infra.common.facade.datascope.PermissionQuery;
import com.alinesno.infra.common.facade.pageable.DatatablesPageBean;
import com.alinesno.infra.common.facade.services.IBaseService;
import com.alinesno.infra.smart.scene.entity.DocReaderTaskEntity;

import java.util.List;

/**
 * 描述： 通用助手任务
 *
 * @author luoxiaodong
 * @version 1.0.0
 */
public interface IDocReaderTaskService extends IBaseService<DocReaderTaskEntity> {


    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    List<DocReaderTaskEntity> pagerListByPage(DatatablesPageBean page, PermissionQuery query , Long sceneId);

    /**
     * 添加文档阅读任务
     *
     * @param fileName
     * @param storageId
     * @param fileSuffix
     * @param query
     * @return
     */
    DocReaderTaskEntity addTask(String fileName, String storageId , String fileSuffix, Long sceneId , PermissionQuery query);

}
